package com.jimmy.nonweb.data.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jimmy.nonweb.data.entity.Engineer;
import com.jimmy.nonweb.data.mapper.EngineerMapper;
import com.jimmy.nonweb.data.service.EngineerService;

import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class EngineerServiceImpl extends ServiceImpl<EngineerMapper, Engineer> implements EngineerService {

    @Override
    public List<Engineer> getAllWithAccounts() {
        return this.baseMapper.selectAllWithAccounts();
    }

    @Override
    public Engineer getByIdWithAccounts(String id) {
        return this.baseMapper.selectByIdWithAccounts(id);
    }
}
